﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class VersionAttributeMain
{
    static void Main(string[] args)
    {
        Type st = typeof(Student);
        foreach (var method in st.GetMethods())
        {
            foreach (var attribute in method.GetCustomAttributes(false))
            {
                if (attribute.GetType().ToString().Equals("VersionAttribute"))
                {
                    Console.WriteLine(attribute.ToString());
                }
            }
        }
    }
}
